package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.letoken.platform.repo.app.dao.AdminLampConfigMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户阿拉丁神灯信息表
 * </p>
 *
 * @author 作者
 * @since 2024-01-23
 */
@Getter
@Setter
@TableName("app_user_lamp")
@ApiModel(value = "AppUserLamp对象", description = "用户阿拉丁神灯信息表")
public class AppUserLamp extends Model<AppUserLamp> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Integer userId;

    @ApiModelProperty("等级")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("灯油")
    @TableField("lamp")
    private BigDecimal lamp;

    @ApiModelProperty("可获取的capa算力")
    @TableField("capa")
    private BigDecimal capa;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("udpate_time")
    private LocalDateTime udpateTime;

    @TableField("user_performance")
    private BigDecimal userPerformance;

    @TableField("team_performance")
    private BigDecimal teamPerformance;

    @TableField(exist = false)
    private BigDecimal twoTeamPerformance;

    @TableField(exist = false)
    private List<AdminLampConfig> adminLampConfigs;


    @Override
    public Serializable pkVal() {
        return this.userId;
    }

}
